package com.codepilot.server.mapper;

import org.apache.ibatis.annotations.Mapper;
import com.codepilot.server.model.entity.Statistics;

import java.sql.Timestamp;

@Mapper
public interface StatsMapper {

    Statistics getStatsByUserId(int userId);

    Integer getTotalDoneRecords(int userId);

    Timestamp getStartTime(int userId);

    Timestamp getEndTime(int userId);

    Integer getDifficultyCount(int userId, String difficulty);

    Integer getTopicCount(int userId, String topic);

}
